from django.db import models

# Create your models here.
class Role(models.Model):
    # unique=True 唯一
    role_name = models.CharField(max_length=50, unique=True, verbose_name="角色名")
    role_en = models.CharField(max_length=50, unique=True , verbose_name="角色标识")
    # 可以为空
    description = models.TextField(blank=True,null=True,verbose_name="角色描述")
    create_time = models.DateField(auto_now_add=True)

    class Meta:
        db_table = 'role'